package com.huixuebao.insure.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author yufatao
 * @version 1.0
 * @date 2020-11-01 21:14
 */
@Component
@Data
@RefreshScope
public class GlobalConfig {

    /**
     * 验签 (对接方公钥）
     */
    @Value("${encrypt.sign.public-key}")
    private String publicKey;

    /**
     * 签名
     */
    @Value("${encrypt.sign.private-key}")
    private String privateKey;

    /**
     * 数据加密
     */
    @Value("${encrypt.data.key}")
    private String dataKey;
}